package base.operator;

public class Logics {
    public static void main(String[] args) {
        boolean a = true, b = false;
        System.out.println("a = " + a + ",b = " + b);
        System.out.println("a and b = " + (a && b));
        System.out.println("a or b = " + (a || b));
        System.out.println("not a = " + (!a));
        System.out.println("not b = " + (!b));
        System.out.println("a^b = " + (a ^ b));
        System.out.println("a^a = " + (a ^ b));
        System.out.println("b^b = " + (b ^ b));
    }
}
